package com.kgc.travel.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LawRegulationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LawRegulationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLawIdIsNull() {
            addCriterion("law_id is null");
            return (Criteria) this;
        }

        public Criteria andLawIdIsNotNull() {
            addCriterion("law_id is not null");
            return (Criteria) this;
        }

        public Criteria andLawIdEqualTo(Integer value) {
            addCriterion("law_id =", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdNotEqualTo(Integer value) {
            addCriterion("law_id <>", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdGreaterThan(Integer value) {
            addCriterion("law_id >", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("law_id >=", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdLessThan(Integer value) {
            addCriterion("law_id <", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdLessThanOrEqualTo(Integer value) {
            addCriterion("law_id <=", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdIn(List<Integer> values) {
            addCriterion("law_id in", values, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdNotIn(List<Integer> values) {
            addCriterion("law_id not in", values, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdBetween(Integer value1, Integer value2) {
            addCriterion("law_id between", value1, value2, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdNotBetween(Integer value1, Integer value2) {
            addCriterion("law_id not between", value1, value2, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawNameIsNull() {
            addCriterion("law_name is null");
            return (Criteria) this;
        }

        public Criteria andLawNameIsNotNull() {
            addCriterion("law_name is not null");
            return (Criteria) this;
        }

        public Criteria andLawNameEqualTo(String value) {
            addCriterion("law_name =", value, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameNotEqualTo(String value) {
            addCriterion("law_name <>", value, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameGreaterThan(String value) {
            addCriterion("law_name >", value, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameGreaterThanOrEqualTo(String value) {
            addCriterion("law_name >=", value, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameLessThan(String value) {
            addCriterion("law_name <", value, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameLessThanOrEqualTo(String value) {
            addCriterion("law_name <=", value, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameLike(String value) {
            addCriterion("law_name like", value, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameNotLike(String value) {
            addCriterion("law_name not like", value, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameIn(List<String> values) {
            addCriterion("law_name in", values, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameNotIn(List<String> values) {
            addCriterion("law_name not in", values, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameBetween(String value1, String value2) {
            addCriterion("law_name between", value1, value2, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawNameNotBetween(String value1, String value2) {
            addCriterion("law_name not between", value1, value2, "lawName");
            return (Criteria) this;
        }

        public Criteria andLawVersionIsNull() {
            addCriterion("law_version is null");
            return (Criteria) this;
        }

        public Criteria andLawVersionIsNotNull() {
            addCriterion("law_version is not null");
            return (Criteria) this;
        }

        public Criteria andLawVersionEqualTo(String value) {
            addCriterion("law_version =", value, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionNotEqualTo(String value) {
            addCriterion("law_version <>", value, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionGreaterThan(String value) {
            addCriterion("law_version >", value, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionGreaterThanOrEqualTo(String value) {
            addCriterion("law_version >=", value, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionLessThan(String value) {
            addCriterion("law_version <", value, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionLessThanOrEqualTo(String value) {
            addCriterion("law_version <=", value, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionLike(String value) {
            addCriterion("law_version like", value, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionNotLike(String value) {
            addCriterion("law_version not like", value, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionIn(List<String> values) {
            addCriterion("law_version in", values, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionNotIn(List<String> values) {
            addCriterion("law_version not in", values, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionBetween(String value1, String value2) {
            addCriterion("law_version between", value1, value2, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawVersionNotBetween(String value1, String value2) {
            addCriterion("law_version not between", value1, value2, "lawVersion");
            return (Criteria) this;
        }

        public Criteria andLawExplainIsNull() {
            addCriterion("law_explain is null");
            return (Criteria) this;
        }

        public Criteria andLawExplainIsNotNull() {
            addCriterion("law_explain is not null");
            return (Criteria) this;
        }

        public Criteria andLawExplainEqualTo(String value) {
            addCriterion("law_explain =", value, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainNotEqualTo(String value) {
            addCriterion("law_explain <>", value, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainGreaterThan(String value) {
            addCriterion("law_explain >", value, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainGreaterThanOrEqualTo(String value) {
            addCriterion("law_explain >=", value, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainLessThan(String value) {
            addCriterion("law_explain <", value, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainLessThanOrEqualTo(String value) {
            addCriterion("law_explain <=", value, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainLike(String value) {
            addCriterion("law_explain like", value, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainNotLike(String value) {
            addCriterion("law_explain not like", value, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainIn(List<String> values) {
            addCriterion("law_explain in", values, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainNotIn(List<String> values) {
            addCriterion("law_explain not in", values, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainBetween(String value1, String value2) {
            addCriterion("law_explain between", value1, value2, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawExplainNotBetween(String value1, String value2) {
            addCriterion("law_explain not between", value1, value2, "lawExplain");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateIsNull() {
            addCriterion("law_gmt_create is null");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateIsNotNull() {
            addCriterion("law_gmt_create is not null");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateEqualTo(Date value) {
            addCriterion("law_gmt_create =", value, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateNotEqualTo(Date value) {
            addCriterion("law_gmt_create <>", value, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateGreaterThan(Date value) {
            addCriterion("law_gmt_create >", value, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("law_gmt_create >=", value, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateLessThan(Date value) {
            addCriterion("law_gmt_create <", value, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateLessThanOrEqualTo(Date value) {
            addCriterion("law_gmt_create <=", value, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateIn(List<Date> values) {
            addCriterion("law_gmt_create in", values, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateNotIn(List<Date> values) {
            addCriterion("law_gmt_create not in", values, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateBetween(Date value1, Date value2) {
            addCriterion("law_gmt_create between", value1, value2, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtCreateNotBetween(Date value1, Date value2) {
            addCriterion("law_gmt_create not between", value1, value2, "lawGmtCreate");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedIsNull() {
            addCriterion("law_gmt_modified is null");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedIsNotNull() {
            addCriterion("law_gmt_modified is not null");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedEqualTo(Date value) {
            addCriterion("law_gmt_modified =", value, "lawGmtModified");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedNotEqualTo(Date value) {
            addCriterion("law_gmt_modified <>", value, "lawGmtModified");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedGreaterThan(Date value) {
            addCriterion("law_gmt_modified >", value, "lawGmtModified");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedGreaterThanOrEqualTo(Date value) {
            addCriterion("law_gmt_modified >=", value, "lawGmtModified");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedLessThan(Date value) {
            addCriterion("law_gmt_modified <", value, "lawGmtModified");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedLessThanOrEqualTo(Date value) {
            addCriterion("law_gmt_modified <=", value, "lawGmtModified");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedIn(List<Date> values) {
            addCriterion("law_gmt_modified in", values, "lawGmtModified");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedNotIn(List<Date> values) {
            addCriterion("law_gmt_modified not in", values, "lawGmtModified");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedBetween(Date value1, Date value2) {
            addCriterion("law_gmt_modified between", value1, value2, "lawGmtModified");
            return (Criteria) this;
        }

        public Criteria andLawGmtModifiedNotBetween(Date value1, Date value2) {
            addCriterion("law_gmt_modified not between", value1, value2, "lawGmtModified");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}